﻿using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Tauren.File.Entity.Global;
using Tauren.File.Entity.Model;
using Tauren.File.Entity.Output;
using Dapper;

namespace Tauren.File.DLL.System_Log
{
    /// <summary>
    /// 日志操作
    /// </summary>
    public class SystemLogBusiness : ISystemLogBusiness
    {
        public SystemLogBusiness(IDbConnection dbConnection)
        {
            this.dbConnection = dbConnection;
        }

        public IDbConnection dbConnection { get; set; }
        /// <summary>
        /// 新增租户
        /// </summary>
        /// <param name="tenant"></param>
        /// <returns></returns>
        public long Add(Entity.Model.SystemLog model) => dbConnection.Insert<Entity.Model.SystemLog>(model);         
    }
}
